

angular.module('password.route', ['password.controller','ionic-datepicker'])
  .config(function ($stateProvider, $urlRouterProvider,ionicDatePickerProvider) {

    $stateProvider
      .state('tab.password', {
        url: '/password',
        views: {
          'tab-personalcenter': {
            templateUrl: 'areas/password/password.html',
            controller: 'PasswordCtrl'
          }
        }
      })
    var datePickerObj = {
      inputDate: new Date(),
      setLabel: '确定',
      todayLabel: '今天',
      closeLabel: '关闭',
      mondayFirst: false,
      weeksList: ["日", "一", "二", "三", "四", "五", "六"],
      monthsList: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
      templateType: 'popup',
      from: new Date(),
      to: new Date(),
      showTodayButton: true,
      dateFormat: 'dd MMMM yyyy',
      closeOnSelect: false,
      disableWeekdays: [""],
      modalHeaderColor: 'red', //可选
      modalFooterColor: 'red', //可选
    };
    ionicDatePickerProvider.configDatePicker(datePickerObj);


  });
